﻿@model IEnumerable<Barry.BarbeSystem.Models.Employee>
@{
    ViewBag.Title = "title";
    
}

@section header{
    <script src="../../Scripts/operation.js" type="text/javascript"></script>
    <script type="text/javascript">
//        function doSearch() {
//            $("#dg").datagrid('load', {
//                category: $("#category").val(),
//                detail: $("#detail").val()
//            });
//        }

    </script>
}
<div id="tb" style="padding: 5px; height: auto">
    <div class="actionButton">
        @Html.ActionLink(" 新 建 ", "Create", null, new { @class = "easyui-linkbutton", @plain = "true", @iconcls = "icon-add" })
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-edit" plain="true"
            onclick="updateItem('/employee/edit/') ">修改</a> <a href="javascript:void(0)" class="easyui-linkbutton"
                iconcls="icon-remove" plain="true" onclick=" destroyItem('/employee/delete') ">删除</a>
    </div>

</div>


<table id="dg" data-options="rownumbers:true,singleSelect:true,pagination:true"
    title="员工信息维护" class="easyui-datagrid" url="/employee/pageindex" toolbar="#tb">
    <thead>
        <tr>
            <th field="Name" data-options="width:200">
                @Html.DisplayNameFor(model => model.Name)
            </th>
            <th data-options="width:200" field="Remarks">
                @Html.DisplayNameFor(model => model.Remarks)
            </th>
            <th>
            </th>
        </tr>
    </thead>
    <tbody>
    </tbody>
</table>
